<?php


namespace App\Http\Model\Job;


use Illuminate\Support\Facades\DB;

class LockHistoryModel
{

    /**
     * 更新表记录
     *
     * @param $data
     *
     * @return int
     */
    public static function upd($data)
    {
        return DB::table('dw_lock_history')
                 ->where('data_date', $data['data_date'])
                 ->where('db', $data['db'])
                 ->where('table_name', $data['table'])
                 ->where('is_del', 0)
                 ->update([
                     'status' => $data['status'],
                 ]);
    }

}





/**
 * LockHistoryModel.php
 *
 * 说明:
 *
 * 修改历史
 * ----------------------------------------
 * 2021/6/10 16:20:00   操作:创建
 **/
